<template>
  <view>
    <my-login v-if="!getToken"></my-login>

    <my-userinfo v-else></my-userinfo>
  </view>
</template>

<script>
import MyLogin from '@/components/my-login'
import MyUserinfo from '@/components/my-userinfo'
import { mapGetters } from 'vuex'
export default {
  components: {
    MyLogin,
    MyUserinfo
  },
  computed: {
    ...mapGetters('m_user', ['getToken'])
  }
}
</script>
